export class SongList{
    // 歌单名称
    constructor(name, desc, img, id,...songlist) {
        this.name = name;
        this.desc = desc;
        this.img = img;
        this.songlist = songlist;
        this.id = id;
    }

    addSongList(song){
        this.songlist.push(song)
    }

    delSongList(song) {
        let songIndex = this.songlist.indexOf(song)
        if(songIndex > 0){
            this.songlist.splice(songIndex,1)
        }
    }
}

export class Song{
    // 歌名 歌手名 歌曲专辑,
    constructor(name, singername, songAlbum, img,songlink,id, ...Lyriclist ){
        this.name = name;
        this.singername = singername;
        this.songAlbum = songAlbum;
        this.img = img
        this.songlink = songlink
        this.Lyriclist = Lyriclist
        this.id = id
    }
}

export class Singer extends SongList {

    // constructor(name, desc, img, id,...songlist) {
    //     this.name = name; // 歌手名字
    //     this.desc = desc;
    //     this.img = img;
    //     this.songlist = songlist;
    //     this.id = id;
    // }
}


export class Banner{
    constructor(link, img){
        this.link = link;
        this.img = img;
    }
}

export class Lyric {
    constructor(time, sentence) {
        this.time = time
        this.sentence = sentence
    }
}

